Set visual depth to 24 for 32 bits-per-pixel devices on Win32. This allows
authorTor Lillqvist <tml@novell.com>
Thu, 13 Oct 2005 07:08:49 +0000 (07:08 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Thu, 13 Oct 2005 07:08:49 +0000 (07:08 +0000)
commitb25e6c5b05df6b292171f67a1d3315ca579437d8
tree1d27b75e167d3ba059792bf6720fccf57df935d4
parente3bf16ec14edb14dd0f2f4ce04040a7705db671d
Set visual depth to 24 for 32 bits-per-pixel devices on Win32. This allows

2005-10-13  Tor Lillqvist  <tml@novell.com>

Set visual depth to 24 for 32 bits-per-pixel devices on
Win32. This allows gdk_drawable_real_draw_pixbuf() to use the
optimized composite_0888() function rather than the slower image
dithering functions to draw pixbufs (#313993, John Ehresman)

* gdk/win32/gdkimage-win32.c (_gdk_win32_new_image): Use
_gdk_windowing_get_bits_for_depth() to initialize
GdkImage::bits_per_pixel.
(_gdk_windowing_get_bits_for_depth): Return 32 bits for depth 24.

* gdk/win32/gdkpixmap-win32.c (gdk_pixmap_new): Use
_gdk_windowing_get_bits_for_depth() to initialize
BITMAPINFOHEADER::biBitCount.

* gdk/win32/gdkvisual-win32.c (_gdk_visual_init): Set
GdkVisual::depth to 24 even if GetDeviceCaps(BITSPIXEL) returns
32.
ChangeLog
ChangeLog.pre-2-10
gdk/win32/gdkimage-win32.c
gdk/win32/gdkpixmap-win32.c
gdk/win32/gdkvisual-win32.c